package com.chanchaw.service;

import com.summer.Autowired;
import com.summer.Component;
import com.summer.InitializingBean;
import com.summer.Scope;

/**
 * @author chanchaw
 * @create 2022-10-10 10:27
 */
@Component("userService")
public class UserService implements InitializingBean,UserInterface {
    @Autowired
    private OrderService orderService;
    public void test(){
        System.out.println("看我依赖注入：" + orderService);
    }

    @Override
    public void afterPropertiesSet() {
        System.out.println("UserService调用了 InitializingBean # afterPropertiesSet");
    }
}
